<?php

/**
 * 请记得打注释, 小心被小田怼
 */
Route::get('entity/asset/vlive/vchans', ['as'=> 'entity.asset.vlive.vchans.index', 'uses' => 'Entity\Asset\Vlive\VchanController@index']);
Route::post('entity/asset/vlive/vchans', ['as'=> 'entity.asset.vlive.vchans.store', 'uses' => 'Entity\Asset\Vlive\VchanController@store']);
Route::get('entity/asset/vlive/vchans/create', ['as'=> 'entity.asset.vlive.vchans.create', 'uses' => 'Entity\Asset\Vlive\VchanController@create']);
Route::put('entity/asset/vlive/vchans/{vchans}', ['as'=> 'entity.asset.vlive.vchans.update', 'uses' => 'Entity\Asset\Vlive\VchanController@update']);
Route::patch('entity/asset/vlive/vchans/{vchans}', ['as'=> 'entity.asset.vlive.vchans.update', 'uses' => 'Entity\Asset\Vlive\VchanController@update']);
Route::delete('entity/asset/vlive/vchans/{vchans}', ['as'=> 'entity.asset.vlive.vchans.destroy', 'uses' => 'Entity\Asset\Vlive\VchanController@destroy']);
Route::get('entity/asset/vlive/vchans/{vchans}', ['as'=> 'entity.asset.vlive.vchans.show', 'uses' => 'Entity\Asset\Vlive\VchanController@show']);
Route::get('entity/asset/vlive/vchans/{vchans}/edit', ['as'=> 'entity.asset.vlive.vchans.edit', 'uses' => 'Entity\Asset\Vlive\VchanController@edit']);

// 直播媒资详情
Route::get('entity/asset/vlive/vchans/vchan_details/{vchan_id}', ['as'=> 'entity.asset.vlive.vchan_details', 'uses' => 'Entity\Asset\Vlive\VchanController@vchanDetails']);

// 批量导入
Route::get('entity/asset/vlive/vchans/batch_import/view', ['as'=> 'entity.asset.vlive.vchan.batch_import_view', 'uses' => 'Entity\Asset\Vlive\VchanController@batchImportView']);
Route::post('entity/asset/vlive/vchans/batch_import', ['as'=> 'entity.asset.vlive.vchan.batch_import', 'uses' => 'Entity\Asset\Vlive\VchanController@batchImport']);
// 批量导入进度
Route::get('entity/asset/vlive/vchans/batch_import/bacth_import_progress',[
    'as'=> 'entity.asset.vlive.vchan.bacth_import_progress',
    'uses' => 'Entity\Asset\Vlive\VchanController@bacthImportProgress'
]);

/**
 * 剧集, 上下线和发布
 */
// 上线发布
Route::get('entity/asset/vlive/vchans/vchan_details/publish/view',[
    'as'=> 'entity.asset.vlive.vchans.publish', 
    'uses' => 'Entity\Asset\Vlive\VchanController@publish'
]);
// 单个,批量上线发布
Route::post('entity/asset/vlive/vchans/vchan_details/publish_one/view',[
    'as'=> 'entity.asset.vlive.vchans.publish_one', 
    'uses' => 'Entity\Asset\Vlive\VchanController@batchModerate'
]);
// 单个,批量下线发布
Route::post('entity/asset/vlive/vchans/vchan_details/publish_down_one/view',[
    'as'=> 'entity.asset.vlive.vchans.publish_down_one', 
    'uses' => 'Entity\Asset\Vlive\VchanController@batchModerate'
]);
// 下线发布
Route::get('entity/asset/vlive/vchans/vchan_details/publish_down/view',[
    'as'=> 'entity.asset.vlive.vchans.publish_down', 
    'uses' => 'Entity\Asset\Vlive\VchanController@publishDown'
]);
// 全部上线
Route::get('entity/asset/vlive/vchans/vchan_details/all_up/view',[
    'as'=> 'entity.asset.vlive.vchans.all_up',
    'uses' => 'Entity\Asset\Vlive\VchanController@allUp'
]);
// 全部下线
Route::get('entity/asset/vlive/vchans/vchan_details/all_down/view',[
    'as'=> 'entity.asset.vlive.vchans.all_down',
    'uses' => 'Entity\Asset\Vlive\VchanController@allDown'
]);
// 单个上线按钮
Route::post('entity/asset/vlive/vchans/vchan_details/up/view',[
    'as'=> 'entity.asset.vlive.vchans.up',
    'uses' => 'Entity\Asset\Vlive\VchanController@batchModerate'
]);
// 单个下线按钮
Route::post('entity/asset/vlive/vchans/vchan_details/down/view',[
    'as'=> 'entity.asset.vlive.vchans.down',
    'uses' => 'Entity\Asset\Vlive\VchanController@batchModerate'
]);
// 查询进度
Route::get('entity/asset/vlive/vchans/vchan_details/progress/view',[
    'as'=> 'entity.asset.vlive.vchans.progress',
    'uses' => 'Entity\Asset\Vlive\VchanController@queryProgress'
]);